# -*-encoding: utf-8 -*-

import EmailInitial
from EmailThread import EmailThread
import smtplib
from email.mime.text import MIMEText

print EmailInitial.sender
print EmailInitial.smtpObj

def sendEmails(receiver, string):
    em = EmailThread(receiver, string)
    em.start()

def closeEmailConnection():
    if EmailInitial.smtpObj:
        EmailInitial.smtpObj.close()
